//
//  JXLSportTrackingLine.h
//  JXLSport
//
//  Created by 贾晓磊 on 16/10/25.
//  Copyright © 2016年 贾晓磊. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <MAMapKit/MAMapKit.h>
#import "JXLSportPolyLine.h"
// 轨迹追踪线条模型，记录起始点和结束点
@interface JXLSportTrackingLine : NSObject

// 起始点位置
@property (nonatomic,strong,readonly) CLLocation *startLocation;
// 终点位置
@property (nonatomic,strong,readonly) CLLocation *endLocation;
// 描述起始点和结束点之间的折线模型
@property (nonatomic,readonly) JXLSportPolyLine *polyLine;
//起始点和结束点之间的平均速度，单位是 `公里/小时`
// 如果使用 CLLocationSpeed 可能会产生误解
@property (nonatomic,readonly) double speed;
//起始点和结束点之间的时间差值，单位：秒
@property (nonatomic,readonly)NSTimeInterval time;
//起始点和结束点之间的距离，单位：公里
@property (nonatomic,readonly)double distance;

- (instancetype)initWithStartLocation:(CLLocation *)startLocation endLocation:(CLLocation *)endLocation;
@end
